<template>
  <header class="header">
    <div class="container">
      <div class="logo-container">
        <img src="../assets/images/logo/logo.jpg" alt="Logo" class="logo">
      </div>
      <ul class="nav-list">
        <li class="nav-item">
          <router-link to="/home" class="nav-link">
            <span class="arrow">▾</span>返回首页
          </router-link>
        </li>
      </ul>
    </div>
    <div class="user-actions">
      <button class="favorite-btn">
        <span class="heart-icon">❤</span>
      </button>
      <button class="profile-btn">
        Profile
      </button>
    </div>
  </header>
</template>

<script setup>
</script>

<style scoped lang="less">
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  background: linear-gradient(135deg, #fff9f0 0%, #fef3c7 100%);
  box-shadow: 0 2px 10px rgba(124, 45, 18, 0.1);
  border-bottom: 1px solid rgba(234, 88, 12, 0.2);
  position: relative;
  z-index: 100;
}

.container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-container {
  margin-right: 40px;
  img{
    width: 60px;
    height: 60px;
  }
}

.logo {
  height: 40px;
  width: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-right: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  color: #7c2d12;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;

  &:hover {
    background-color: rgba(234, 88, 12, 0.1);
    color: #c2410c;
  }
}

.arrow {
  transform: rotate(-90deg);
  display: inline-block;
  margin-right: 6px;
  color: #9a3412;
  transition: transform 0.3s ease;
}

.user-actions {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 15px;
  transition: all 0.2s ease;

  &:hover {
    transform: scale(1.1);
  }
}

.heart-icon {
  font-size: 1.2rem;
  color: #c2410c;
}

.profile-btn {
  background: linear-gradient(90deg, #ea580c 0%, #c2410c 100%);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background: linear-gradient(90deg, #c2410c 0%, #9a3412 100%);
    transform: translateY(-1px);
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }

  .logo-container {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .nav-list {
    margin-bottom: 10px;
  }

  .user-actions {
    margin-right: 0;
  }
}
</style>